package com.lqq.demo10;

public class Bus extends Vehicle{
    private int seat;

    public Bus() {
    }

    public Bus(String brand, String id, int seat) {
        super(brand, id);
        this.seat = seat;
    }

    @Override
    public double getSumRent(int days) {
        if(this.seat <= 16){
            return  400 * days;
        }else{
            return 600 * days;
        }
    }
}
